/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package anton.stock;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 *
 * @author johan
 */
@ManagedBean(name="prepareCreateStock")
@SessionScoped

public class prepareCreateStock {
    
    private String target;

    public StockEntity getStockentity() {
        return stockentity;
    }

    public void setStockentity(StockEntity stockentity) {
        this.stockentity = stockentity;
    }
    
    StockEntity stockentity;

    public String prepareCreateStock() {
        
      stockentity  = new StockEntity();
      
       target="/admin/stock/createstock?faces-redirect=true";
       
        return target;
        
    }
    
    
    
    
}
